createEcsFree
Description
Create ecs free.
Request Method
POST
Request Path
/customer/ecs/free/create
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
period | BODY | integer | No | No sample value for this parameter. | period |
cost | BODY | number | No | No sample value for this parameter. | cost |
imageId | BODY | string | Yes | No sample value for this parameter. | image id |
quantity | BODY | integer | Yes | No sample value for this parameter. | quantity |
bandwidth | BODY | integer | No | No sample value for this parameter. | bandwidth |
publicIpAddress | BODY | boolean | No | No sample value for this parameter. | public ip address |
systemDisk | BODY | object | Yes | No sample value for this parameter. | No description for this parameter. |
billingMethod | BODY | string | Yes | No sample value for this parameter. | billing method |
instanceType | BODY | string | Yes | No sample value for this parameter. | instance type |
instanceFamily | BODY | string | Yes | No sample value for this parameter. | instance family |
deploymentSetId | BODY | string | Yes | No sample value for this parameter. | deployment set id |
securityGroupId | BODY | string | Yes | No sample value for this parameter. | security group id |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
vSwitchId | BODY | string | Yes | No sample value for this parameter. | vSwitch id |
serverGuard | BODY | boolean | Yes | No sample value for this parameter. | server guard |
vpcId | BODY | string | Yes | No sample value for this parameter. | vpc id |
pricingCycle | BODY | string | No | No sample value for this parameter. | pricing cycle |
dataDisk | BODY | array | No | No sample value for this parameter. | infomation of data disk list |
imageType | BODY | string | Yes | No sample value for this parameter. | image type |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
result | object | `{"ecsCommonResponseVos":[{"instanceId":"d681268a-3489-4c61-a115-d1629e8edea7","orderId":2.0220727154128E+18}]}` | result |
resultCode | string | 0 | result code |
resultMsg | string | success | result message |
Example
Successful Response example
{
"result":
{
"ecsCommonResponseVos":
[
{
"instanceId":"d681268a-3489-4c61-a115-d1629e8edea7",
"orderId":2.0220727154128E+18
}
]
},
"resultCode":"0",
"resultMsg":"success"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}